﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.PrintManage
{
    public partial class FrmPaperTitleInput : Form
    {
        public FrmPaperTitleInput()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (txtChangePaperTitle.Text != string.Empty)
            {
                ((FrmParperManager)this.Owner).ChangePaperTitle = Convert.ToDouble(txtChangePaperTitle.Text);
                ((FrmParperManager)this.Owner).isChange = true;
                this.Close();
            }
            else
            {
                MessageBox.Show("请输入纸头", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }

        private void FrmPaperTitleInput_Load(object sender, EventArgs e)
        {
            txtChangePaperTitle.Focus();
        }
    }
}
